* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  // 对于Firefox浏览器隐藏滚动条
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html,
body,
#root {
  width: 100%;
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

body {
  font-size: 14px;
  color: #333;
  background-color: #f0f2f5;
}

// 隐藏所有滚动条 - Webkit浏览器
::-webkit-scrollbar {
  width: 0px;
  height: 0px;
  background: transparent;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: transparent;
}

// 确保内容仍然可以滚动，只是隐藏滚动条
html, body {
  overflow-x: hidden;
}

// 对于可能需要滚动的容器
.scrollable {
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  
  &::-webkit-scrollbar {
    width: 0px;
    background: transparent;
  }
}

// 清除浮动
.clearfix::after {
  content: '';
  display: block;
  clear: both;
}

// 文本省略
.text-ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.text-ellipsis-2 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
}

// flex 布局
.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-column {
  display: flex;
  flex-direction: column;
}
